package com.tensquare.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

@SpringBootApplication
public class SearchApplication {
//是否索引
//是否分词
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }

    @Bean
    public IdWorker idWorkker() {
        return new IdWorker(1, 1);
    }

}
//"hits": [
// {
// "_index": "tensquare_article",
// "_type": "article",
// "_id": "AW7ZzlPY_q1-rqFl8722",
// "_score": 1.0,
// "_source": {
// "id": null,          这个
// "title": "JAVAarticle添加",
// "content": "ES--article测试",
// "state": null
// }
// }
// ]